using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;

namespace etbTOEIC
{
	/// <summary>
	/// Summary description for UCBookInfo.
	/// </summary>
	public class UCBookInfo : System.Windows.Forms.UserControl
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.TextBox txtBookCode;
		private System.Windows.Forms.TextBox txtBookName;
		private System.Windows.Forms.TextBox txtWriter;
		private System.Windows.Forms.Label label3;
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public UCBookInfo()
		{
			// This call is required by the Windows.Forms Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitializeComponent call

		}
		public string BookCode
		{
			get{
				return txtBookCode.Text.Trim();
			}
			set{
				txtBookCode.Text = value;
			}
		}
		public string BookName{
			get{
				return txtBookName.Text.Trim();
			}
			set{
				txtBookName.Text = value;
			}
		}
		public string Writer
		{
			get
			{
				return txtWriter.Text.Trim();
			}
			set
			{
				txtWriter.Text = value;
			}
		}
		public int BookID
		{
			get
			{
				return Convert.ToInt32(txtBookCode.Tag.ToString());
			}
			set
			{
				txtBookCode.Tag = value;
			}
		}
		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Component Designer generated code
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(UCBookInfo));
			this.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.txtBookCode = new System.Windows.Forms.TextBox();
			this.txtBookName = new System.Windows.Forms.TextBox();
			this.txtWriter = new System.Windows.Forms.TextBox();
			this.label3 = new System.Windows.Forms.Label();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Image = ((System.Drawing.Image)(resources.GetObject("label1.Image")));
			this.label1.Location = new System.Drawing.Point(16, 16);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(72, 23);
			this.label1.TabIndex = 0;
			this.label1.Text = "Book Code";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// label2
			// 
			this.label2.Image = ((System.Drawing.Image)(resources.GetObject("label2.Image")));
			this.label2.Location = new System.Drawing.Point(16, 56);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(72, 23);
			this.label2.TabIndex = 0;
			this.label2.Text = "Book Name";
			this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// txtBookCode
			// 
			this.txtBookCode.Location = new System.Drawing.Point(104, 16);
			this.txtBookCode.Name = "txtBookCode";
			this.txtBookCode.Size = new System.Drawing.Size(176, 23);
			this.txtBookCode.TabIndex = 1;
			this.txtBookCode.Text = "";
			// 
			// txtBookName
			// 
			this.txtBookName.Location = new System.Drawing.Point(104, 56);
			this.txtBookName.Name = "txtBookName";
			this.txtBookName.Size = new System.Drawing.Size(176, 23);
			this.txtBookName.TabIndex = 1;
			this.txtBookName.Text = "";
			// 
			// txtWriter
			// 
			this.txtWriter.Location = new System.Drawing.Point(104, 96);
			this.txtWriter.Name = "txtWriter";
			this.txtWriter.Size = new System.Drawing.Size(176, 23);
			this.txtWriter.TabIndex = 1;
			this.txtWriter.Text = "";
			// 
			// label3
			// 
			this.label3.Image = ((System.Drawing.Image)(resources.GetObject("label3.Image")));
			this.label3.Location = new System.Drawing.Point(16, 96);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(72, 23);
			this.label3.TabIndex = 0;
			this.label3.Text = "Writer";
			this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
			// 
			// UCBookInfo
			// 
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.Controls.Add(this.txtBookCode);
			this.Controls.Add(this.label1);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.txtBookName);
			this.Controls.Add(this.txtWriter);
			this.Controls.Add(this.label3);
			this.Font = new System.Drawing.Font("Tahoma", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
			this.Name = "UCBookInfo";
			this.Size = new System.Drawing.Size(312, 136);
			this.ResumeLayout(false);

		}
		#endregion
	}
}
